﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class RefClass
    { 
        static void Main(string[] args)
        {
            int num = 1;
            Method(ref num);
            Console.WriteLine(num); 
        }

        static void Method(ref int i)
            {
                i += 10;
            }
    }
}
